gesture: Chain up in filter_event
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 May 2019 19:10:49 +0000 (19:10 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 May 2019 19:53:30 +0000 (15:53 -0400)
This is the right thing to do.
We want to exclude more events.

gtk/gtkgesture.c

index 7276a3043d5e91c5349c488b09b663ba7d5e51ee..e4e0791d59af64a4d6f0638b6188f0ea8e5b7194 100644 (file)
@@ -628,7 +628,10 @@ gtk_gesture_filter_event (GtkEventController *controller,
    * subclasses which punch the holes in for the events
    * they can possibly handle.
    */
-  return EVENT_IS_TOUCHPAD_GESTURE (event);
+  if (EVENT_IS_TOUCHPAD_GESTURE (event))
+    return FALSE;
+
+  return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_parent_class)->filter_event (controller, event);
 }
 
 static gboolean